package homework;

public class work06 {

	public static void main(String[] args) {
		removeStr("java woaijava,i liek jajavava,i enjoy java", "java");
	}

	public static void removeStr(String max,String min){
		while(max.contains(min)){
			max = max.replace(min, "");
		}
		System.out.println(max);
	}
}
